<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 200px;
      height: 200px;
      border: 3px solid red;
      overflow: visible;/*超出显示(默认)*/
      overflow: hidden;/*超出隐藏*/
      overflow: scroll;/*超出滚动显示*/
    }
    #i1{
        width: 100px;height: 100px;
        /*设置行内元素的垂直对其方式:基线(默认),上/中/下*/
        vertical-align: top;
        vertical-align: middle;
        vertical-align: bottom;
    }


  </style>
</head>
<body>
<input type="text"><img id="i1" src="../a.jpg">
<div>
  <img src="../a.jpg">
</div>
</body>
</html>